﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseTeacher
{
    public class BaseTeacherResource : BaseTeacherUpdateResource
    {
        public string TeacherId { get; set; }
    }


    public class BaseTeacherBasicInfoResource
    {
        public string TeacherCode { get; set; }
        public string TeacherName { get; set; }
        public string HeadIcon { get; set; }
        public string Telephone { get; set; }
        public string Email { get; set; }
        public string Qq { get; set; }
        public string WeiXinCode { get; set; }
      
    }

    public class BaseTeacherUpdateResource: BaseTeacherBasicInfoResource
    {
        public string EnabledMark { get; set; }
    }



    public class BaseTeacherMappingProfile : Profile
    {
        public BaseTeacherMappingProfile()
        {
            CreateMap<BaseTeacherResource, Base_TeacherInfo>();
            CreateMap<Base_TeacherInfo, BaseTeacherResource>();
            CreateMap<BaseTeacherBasicInfoResource, Base_TeacherInfo>();
            CreateMap<BaseTeacherUpdateResource, Base_TeacherInfo>();
        }

    }
}
